package com.ruoyi.wallet.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.wallet.api.domain.ErpSellerStoreWalletLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(contextId = "remoteWalletLogService", value = ServiceNameConstants.WALLET_SERVICE)
public interface RemoteWalletLogService {

    /**
     * 根据订单号获取钱包日志
     */
    @GetMapping("/seller/sellerStoreWalletLog/getWalletLogByOrderNumber")
    ErpSellerStoreWalletLog getWalletLogByOrderNumber(@RequestParam("orderNumber") String orderNumber);

    /**
     * 修改日志
     */
    @PutMapping("/seller/sellerStoreWalletLog")
    public R<Void> updateById(@RequestBody ErpSellerStoreWalletLog walletLog);
}
